<?php

/* * 注意此文档为UTF-8的编码.
 * Created on 2010-6-16
 *
 * @author EXT <isrn@qq.com>
 *
 */
$type_array = array(
    array('name' => 'textfield', 'value' => '文本', 'param' => '0', 'width' => '300', 'height' => '200', 'config' => array(array('name' => 'width', 'type' => 'textfield', 'lable' => '宽度'))),
    array('name' => 'datefield', 'value' => '日期框', 'param' => '1', 'width' => '300', 'height' => '200', 'config' => array(array('name' => 'format', 'type' => 'textfield', 'lable' => '时间格式'))),
    array('name' => 'my97', 'value' => 'My97', 'param' => '1', 'width' => '300', 'height' => '200', 'config' => array(array('name' => 'format', 'type' => 'textfield', 'lable' => '时间格式'))),
    array('name' => 'textarea', 'value' => '文本域', 'param' => '1', 'width' => '300', 'height' => '200', 'default' => '{"height":"200"}', 'config' => array(array('name' => 'height', 'type' => 'textfield', 'lable' => '高度'))),
    array('name' => 'htmleditor', 'value' => 'EXT编辑器', 'param' => '1', 'width' => '300', 'height' => '200', 'config' => array(array('name' => 'height', 'type' => 'textfield', 'lable' => '高度'))),
    array('name' => 'fckeditor', 'value' => 'FCK编辑器', 'param' => '1', 'width' => '300', 'height' => '200', 'config' => array(array('name' => 'height', 'type' => 'textfield', 'lable' => '高度'))),
    array('name' => 'kindeditor', 'value' => 'KIND编辑器', 'param' => '1', 'width' => '300', 'height' => '200', 'config' => array(array('name' => 'height', 'type' => 'textfield', 'lable' => '高度'))),
    array('name' => 'recommend', 'value' => '推荐字段', 'param' => '0', 'width' => '300', 'height' => '200', 'config' => ''),
    array('name' => 'swfupload', 'value' => '大附件上传', 'param' => '0', 'width' => '300', 'height' => '200', 'config' => ''),
    array('name' => 'fileup', 'value' => '单文件上传', 'param' => '0', 'width' => '300', 'height' => '200', 'config' => ''),
    array('name' => 'combo', 'value' => '静态下拉', 'param' => '1', 'width' => '400', 'height' => '400'),
    array('name' => 'combo1', 'value' => '动态下拉', 'param' => '1', 'width' => '400', 'height' => '400'),
    array('name' => 'combosearch', 'value' => '下拉搜索', 'param' => '1', 'width' => '400', 'height' => '400'),
    array('name' => 'combo2', 'value' => '二级级联', 'param' => '1', 'width' => '400', 'height' => '400'),
    array('name' => 'combo3', 'value' => '三级级联', 'param' => '1', 'width' => '400', 'height' => '400'),
    array('name' => 'combossx', 'value' => '省市县', 'param' => '1', 'width' => '400', 'height' => '400'),
    array('name' => 'radiogroup', 'value' => '静态单选', 'param' => '1', 'width' => '400', 'height' => '400'),
    array('name' => 'checkboxgroup', 'value' => '静态复选', 'param' => '1', 'width' => '400', 'height' => '400'),
    array('name' => 'checkboxgroup1', 'value' => '动态复选', 'param' => '1', 'width' => '400', 'height' => '400'),
    array('name' => 'password', 'value' => '密码', 'param' => '1', 'width' => '400', 'height' => '120', 'config' => array(array('name' => 'confirm', 'type' => 'checkbox', 'lable' => '是否需要验证'))),
    array('name' => 'hidden', 'value' => '隐藏域', 'param' => '0', 'width' => '300', 'height' => '200', 'config' => ''),
    array('name' => 'colorpickerfield', 'value' => '颜色拾取', 'param' => '0', 'width' => '100', 'height' => '200', 'config' => array(array('name' => 'width', 'type' => 'colorpickerfield', 'lable' => '宽度')))
);
//$fun_database = array(
//	'item_add'=>'var news=Ext.data.Record.create([{name:"id"},{name:"value"}]);function item_add(){Ext.MessageBox.prompt("请输入职位的名称","职位名称",function(_btn,_text){if(_btn=="ok"){var combo=Ext.getCmp("combo");combo.store.insert(0,new news({value:_text}));combo.setValue(_text);combo["selectItem"]=combo.store.getAt(0);}});}',
//	'item_edit'=>'function item_edit(){var combo=Ext.getCmp("combo");if(combo["selectItem"]!=null)Ext.MessageBox.prompt("请输入修改后的的名称","职位名称",function(_btn,_text){if(_btn=="ok"){combo["selectItem"].set("value",_text);combo.setValue(_text);}});}',
//	'item_del'=>'function item_del(){var combo=Ext.getCmp("combo");if(combo["selectItem"]!=null)Ext.MessageBox.confirm("请输入修改后的的名称","职位名称",function(_btn){if(_btn=="yes"){try{combo.store.remove(combo["selectItem"]);}catch(_err){}if(combo.store.getCount()){combo.setValue(combo.store.getAt(0).get("value"));combo["selectItem"]=combo.store.getAt(0);}else{combo.setValue("");combo["selectItem"]=null;}}});}',
//	'combo_submit'=>'function combo_submit(){var combo=Ext.getCmp("combo");alert(combo.store.getAt(1).get("value"));}'
//)
?>
